package com.branches.imgs;

import java.util.List;

public class RecogResult {
    private List<Word> words_result;

    private int words_result_num;

    private long log_id;

    public List<Word> getWords_result() {
        return words_result;
    }

    public void setWords_result(List<Word> words_result) {
        this.words_result = words_result;
    }

    public int getWords_result_num() {
        return words_result_num;
    }

    public void setWords_result_num(int words_result_num) {
        this.words_result_num = words_result_num;
    }

    public long getLog_id() {
        return log_id;
    }

    public void setLog_id(long log_id) {
        this.log_id = log_id;
    }

    public static class Word {
        private boolean isUsed;

        public boolean isUsed() {
            return isUsed;
        }

        public void setUsed(boolean used) {
            isUsed = used;
        }

        private String words;
        private Probability probability;

        private Location location;

        public String getWords() {
            return words;
        }

        public void setWords(String words) {
            this.words = words;
        }

        public Probability getProbability() {
            return probability;
        }

        public void setProbability(Probability probability) {
            this.probability = probability;
        }

        public Location getLocation() {
            return location;
        }

        public void setLocation(Location location) {
            this.location = location;
        }

        public static class Location {
            private int top;
            private int left;
            private int width;
            private int height;

            public int getTop() {
                return top;
            }

            public void setTop(int top) {
                this.top = top;
            }

            public int getLeft() {
                return left;
            }

            public void setLeft(int left) {
                this.left = left;
            }

            public int getWidth() {
                return width;
            }

            public void setWidth(int width) {
                this.width = width;
            }

            public int getHeight() {
                return height;
            }

            public void setHeight(int height) {
                this.height = height;
            }
        }

        public static class Probability {
            private float average;
            private float min;
            private float variance;

            public float getAverage() {
                return average;
            }

            public void setAverage(float average) {
                this.average = average;
            }

            public float getMin() {
                return min;
            }

            public void setMin(float min) {
                this.min = min;
            }

            public float getVariance() {
                return variance;
            }

            public void setVariance(float variance) {
                this.variance = variance;
            }
        }
    }


}
